package com.wuyi.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

public class Post {
    @Id
    @Column(name = "post_id")
    private Integer postId;

    @Column(name = "post_uid")
    private String postUid;

    @Column(name = "post_title")
    private String postTitle;

    @Column(name = "post_text")
    private String postText;

    @Column(name = "post_image")
    private String postImage;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @Column(name = "post_time")
    private Date postTime;

    @Column(name = "post_hot")
    private Integer postHot;

    @Column(name = "is_anonymous")
    private Integer isAnonymous;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Column(name = "create_time")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * @return post_id
     */
    public Integer getPostId() {
        return postId;
    }

    /**
     * @param postId
     */
    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    /**
     * @return post_uid
     */
    public String getPostUid() {
        return postUid;
    }

    /**
     * @param postUid
     */
    public void setPostUid(String postUid) {
        this.postUid = postUid;
    }

    /**
     * @return post_title
     */
    public String getPostTitle() {
        return postTitle;
    }

    /**
     * @param postTitle
     */
    public void setPostTitle(String postTitle) {
        this.postTitle = postTitle;
    }

    /**
     * @return post_text
     */
    public String getPostText() {
        return postText;
    }

    /**
     * @param postText
     */
    public void setPostText(String postText) {
        this.postText = postText;
    }

    /**
     * @return post_image
     */
    public String getPostImage() {
        return postImage;
    }

    /**
     * @param postImage
     */
    public void setPostImage(String postImage) {
        this.postImage = postImage;
    }

    /**
     * @return post_time
     */
    public Date getPostTime() {
        return postTime;
    }

    /**
     * @param postTime
     */
    public void setPostTime(Date postTime) {
        this.postTime = postTime;
    }

    /**
     * @return post_hot
     */
    public Integer getPostHot() {
        return postHot;
    }

    /**
     * @param postHot
     */
    public void setPostHot(Integer postHot) {
        this.postHot = postHot;
    }

    /**
     * @return is_anonymous
     */
    public Integer getIsAnonymous() {
        return isAnonymous;
    }

    /**
     * @param isAnonymous
     */
    public void setIsAnonymous(Integer isAnonymous) {
        this.isAnonymous = isAnonymous;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}